idf_component_register(
    SRCS "app_main.c" "mqtt_client.c" "camera.c" "temperature_sensor.c" "wifi_connect.c"
    INCLUDE_DIRS "."
    REQUIRES 
        esp32-camera 
        esp_wifi 
        nvs_flash
        esp_mqtt
        cJSON  # 添加官方cJSON组件
)